import request from "@/utils/request";
//策略搜索
export const policySearch=data=>request.get('/api/vm-service/policy/search',{params:data})
//新增策略
export const addPolicy=data=>request.post('/api/vm-service/policy',data)
//修改策略
export const putPolicy=data=>request.put(`/api/vm-service/policy/${data.policyId}`,data)
//删除策略
export const delPolicy=data=>request.delete(`/api/vm-service/policy/${data.policyId}`,{params:data})
//查看详情
export const detailPolicy=data=>request.get(`/api/vm-service/policy/vmList/${data.policyId}`,{params:data})